@layout("/common/_container.html"){
<link href="https://pynnn.oss-cn-hangzhou.aliyuncs.com/revisit.css?v=20200718" rel="stylesheet">
<div class="ibox float-e-margins ">
    <div class="ibox-content" style="padding: 0;">
        <div style="display: none">
            <input type="hidden" id="id" value="">
            <input type="hidden" id="tcNameValue" value="">
            <input type="hidden" id="outpatientNameValue" value="">
            <input type="hidden" id="reach" value="">
            <input type="hidden" id="pageType" value="4">
            <input type="hidden" id="menuName" value="市场-回访记录">
        </div>
        <div class="numStatistics">
            <div><div onclick="RevisitRecord.today()"><span>今日</span></div></div>
            <div onclick="RevisitRecord.yesterday()"><span>昨日</span></div>
            <div onclick="RevisitRecord.thisWeek()">本周</span></div>
            <div onclick="RevisitRecord.thisMonth()"><span>本月</span></div>
            <div onclick="RevisitRecord.lastMonth()"><span>同比</span></div>
            <div onclick="displayHiding('RevisitRecordTable')" id="zoom">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/open.png" alt="">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/shrink.png" alt="" style="display: none">
                <span>条件展开</span>
            </div>
        </div>
        <div class="divFlex" style="display: none">
            <div class="flex_one">
                <div>片区</div>
                <div>门诊</div>
                <div>部门(人员)</div>
                <div>到店状态</div>
                <div>建档人</div>
                <div>跟进人</div>
                <div>回访时间</div>
                <div style="flex: 2;">建档时间</div>
            </div>
            <div class="flex_two">
                <div><select id="area" name="area" title="请选择" class="selectpicker" multiple data-actions-box="true" onchange="RevisitRecord.getData()">
                    @for(str in areaList){
                    <option value="${str.areaAbbreviation}">${str.area}</option>
                    @}
                </select></div>
                <div><select id="outpatientName" title="请选择" name="outpatientName" class="selectpicker" multiple data-actions-box="true" onchange="RevisitRecord.search()">
                    @for(str in outpatientManagementList){
                    <option value="${str.simplename}">${str.simplename}</option>
                    @}
                </select></div>
                <div>
                    <select id="department" name="department" class="selectBox" onchange="RevisitRecord.search()" >
                        <option value="">全部</option>
                        @for(str in rolelist){
                        <option value="${str.id}">${str.name}</option>
                        @}
                    </select>
                </div>
                <div>
                    <select id="status" name="status" class="selectBox" onchange="RevisitRecord.search()">
                        <option value="">全部</option>
                        <option value="预约">预约</option>
                        <option value="到店">到店</option>
                    </select>
                </div>
                <div>
                    <input type="text" id="archiving" style="width: 60%" oninput="RevisitRecord.search()">
                    <a href="javascript:;" style="color: #2eadd0;" onclick="RevisitRecord.getArchiving()">选择</a>
                </div>
                <div>
                    <input type="text" id="follower" style="width: 60%" oninput="RevisitRecord.search()">
                    <a href="javascript:;" style="color: #2eadd0;" onclick="RevisitRecord.getFollower()">选择</a>
                </div>
                <div>
                    <button class="btn btn2" type="button" style="border: 1px solid #999999;background: white;">月</button>
                    <input type="text" autocomplete="off" id="startRevisitTime" style="width: 50%;vertical-align: top;" onclick="laydate({istiem:true,format:'YYYY-MM-DD',choose:checkDate})">
                    <button class="btn btn3" type="button" style="border: 1px solid #999999;background: white;">日</button>
                </div>
                <div><input type="text" autocomplete="off" id="startFilingTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})"></div>
                <div><input type="text" autocomplete="off" id="endFilingTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})"></div>
            </div>
        </div>
        <div class="timeButton">
            <div class="timeBox">
                <div>
                    <span>最后回访时间</span>
                    <input type="text" autocomplete="off" id="startTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                    <span>-</span>
                    <input type="text" autocomplete="off" id="endTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD 23:59:59',choose:checkDate})">
                </div>
                <div></div>
            </div>
            <div class="buttonBox" style="flex: 1.7">
                <div>
                    <button type="button" class="btn" onclick="RevisitRecord.resetSearch()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/empty.png"><span>重置</span></button>
                    <button type="button" class="btn" onclick="screenTable()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>显示列</span></button>
                    @if(shiro.hasPermission("/reservation/export")){
                    <button type="button" class="btn" onclick="$('#RevisitRecordTable').tableExport({ type: 'excel', escape: 'false' })"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/export.png"><span>导出</span></button>
                    <button type="button" class="btn" onclick="RevisitRecord.downLoad()"><span>导出</span></button>
                    @}
                </div>
            </div>
        </div>
        <div class="tableBox"><#table id="RevisitRecordTable"/></div>
    </div>
</div>
<script src="${ctxPath}/static/modular/returnVisit/revisitRecord.js?v=20200718"></script>
<script src="${ctxPath}/static/modular/marketing/reservations/marketSearchContent.js?v=20200718"></script>
@}